<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/page/common/commonConfig.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
   	<title>单位首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script src="<%=basePath%>component/layout.js"></script>
    <script src="<%=basePath%>component/tree.js"></script>
	<script type="text/javascript">
	var dhxLayout = createLayoutNormal('2U');
	
	function nodeOnclick(id){
		changeRightPage('<%=basePath%>page/system/unit/main_right.jsp?unitId='+id);
	}
	
	function changeRightPage(url){
		layoutCellAttachURL(dhxLayout,'b',url);
	}
	
	function initTree(){
		MyTree.initMyTreeFromLayout(dhxLayout,"a");
		MyTree.setupTree("<%=basePath%>system-unit/UnitAction!unitTree.action",nodeOnclick);
	}
	
	function initContainerBaseLayout(){
		dhxLayout.cells('a').hideHeader();
		dhxLayout.cells('a').setWidth(Number('260'));
		dhxLayout.cells('b').hideHeader();
		changeRightPage('<%=basePath%>page/system/unit/unit_listtop.jsp?superUnitId=0');
	}
	
	$(function (){
		initContainerBaseLayout();
		initTree();
	});
	</script>		
</head>
	
<body>
</body>

</html>
